package com.hc.util.net;

import java.net.ServerSocket;
import java.net.Socket;

/**
 *
 * @author fenfei
 */
public interface SocketListener {
    void serverStarted(ServerSocket s);
    void serverStopped();
    void connectionClosed(Socket dst);
    void connectionEstablished(Socket socket);
    void onMessage(String msg,Socket sender);
}
